from django.conf.urls import url

from apps.courses.views import *

urlpatterns = [
    url(r'^list/$', CourseView.as_view(), name="list"),
    url(r'^(?P<course_id>\d+)/$', CourseHomePageView.as_view(), name="home"),
    url(r'^(?P<course_id>\d+)/learn/$', CourseLearnView.as_view(), name="learn"),
    url(r'^(?P<course_id>\d+)/interrelated/$', CourseInterrelatedView.as_view(), name="interrelated"),
    url(r'^(?P<course_id>\d+)/video/(?P<video_id>\d+)$', CourseVideoView.as_view(), name="video"),
]
